<%
	System.out.println("ENtering Login Page");
	Users user  = Trader.getUser(null,request.getParameter("language"));
	Tasks task = user; 
%>

<%@include file="../header.jsp"%>
<script language="JavaScript">

function doLogon()
{
	var form = document.formMain;
	if ((form.username.value == '') || (form.password.value == ''))
	{
		alert("Username and Password can not be empty");
		form.username.focus();
		return;
	}
	form.taskID.value = "<%=Trader.taskLogon%>";
	form.action = "Trader";
	form.submit();
}

function keyUp()
{

	if (window.event.keyCode == 13) {
    	doLogon() ;
		return false;
	}
    return true;
}

function cancelLogon()
{
	var form = document.formMain;
	form.username.value = '';
	form.password.value = ''
	form.username.focus();
}

</script>

 <form method="POST" name="formMain" action="Trader" onSubmit="">				  

<table width="100%" border="0" cellspacing="0" cellpadding="0" background="">
  <tr>
    <td height="360" valign="top" background=""><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="150">&nbsp;</td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:12px">
              <tr>
                <td width="350">&nbsp;</td>
                <td colspan="2" style="font-weight:bold"><label id="e11">Welcome to</label> 
                WSTrader</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td colspan="2">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:Arial, Helvetica, sans-serif;font-size:12px">
                      <tr>
                        <td width="80"><label id="e12">User Name</label></td>
                        <td><input type="text" name="username" autocomplete="off" style="font-family:Arial; font-size:12; width:120;">
						<script language="JavaScript">
							document.formMain.username.focus();
						</script>
						</td>
                      </tr>
                      <tr>
                        <td><label id="e13">Password</label></td>
                        <td><input type="password" name="password" autocomplete="off"  onKeyUp="keyUp();" style="font-family:Arial; font-size:12px; width:120px;"></td>
                      </tr>
                      <tr>
                        <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="160">&nbsp;</td>
                              <td width="22"><img src="images/update.gif" width="15" height="15" onClick="doLogon()" alt="Ok"></td>
                              <td><img src="images/delete.gif" width="15" height="15" onClick="cancelLogon()" alt="Cancel"></td>
                            </tr>
                          </table></td>
                      </tr>
					
                    </table>
                  </td>
              </tr>
              <tr style="font-family:Arial, Helvetica, sans-serif; font-size:12px">
                <td>&nbsp;</td>
                <td width="84"> <input name="language_" type="radio" value="us" <%=!task.getRequest().getStringValue("language").equals("vn")?"checked":""%> onClick="setValue('language', this.value);langChanged();" disabled>English</td>
                <td width="586">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
     </table> </td>
  </tr>
</table>
	<input type="hidden" name="uid"       id="uid"       value="<%=user.getuid()%>">		
    <input type="hidden" name="taskID"    id = "taskID"   value="<%=Trader.taskLogon%>">
    <input name="linkPage" type="hidden"  id = "linkPage" value="trade.reports.position.jsp">
    <input type="hidden" name="language"  id = "language" value="<%=user.getLanguage()%>">
</form>  

<label id="v11" style="display:none">Ch&agrave;o m&#7915;ng b&#7841;n &#273;&#7871;n v&#7899;i</label>
<label id="v12" style="display:none">T&agrave;i kho&#7843;n</label>
<label id="v13" style="display:none">M&#7853;t kh&#7849;u</label>


<%@include file="../footer.jsp"%>
